package thread;

public class Priority {
    public static void main(String[] args) {
        Thread min=new Thread(){
            public void run(){
                for(int i=0;i<100000;i++)
                    System.out.println("min");
            }
        };
        Thread nor=new Thread(){
            public void run(){
                for(int i=0;i<100000;i++)
                    System.out.println("nor");
            }
        };
        Thread max=new Thread(){
            public void run(){
                for(int i=0;i<100000;i++)
                    System.out.println("max");
            }
        };
        min.setPriority(Thread.MIN_PRIORITY);
        max.setPriority(Thread.MAX_PRIORITY);
        min.start();
        max.start();
        nor.start();
    }

}
